package org.idea.qiyu.framework.gateway.user.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * @Author linhao
 * @Date created in 10:23 上午 2022/4/16
 */
@RestController
@RequestMapping(value = "/user")
public class UserController {

    @RequestMapping(value = "test")
    public String doTest(){
        System.out.println("this is test");
        return "success中文内容";
    }

    @GetMapping(value = "/get-int")
    public int getInt(){
        return -1;
    }

    @GetMapping(value = "/get-double")
    public double getDouble(){
        return 1.927;
    }

    @GetMapping(value = "/get-list")
    public List<String> getList(){
        return Arrays.asList("item1","item2");
    }

    @GetMapping(value = "/get-flag")
    public boolean getFlag(){
        return true;
    }
}
